﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Po;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.Po.BuyReturnDetailVMs
{
    public partial class BuyReturnDetailTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._BuyReturnDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.Seq);
        [Display(Name = "_Model._BuyReturnDetail._BuyReturn")]
        public ExcelPropety BuyReturn_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.BuyReturnId);
        [Display(Name = "_Model._BuyReturnDetail._BuyReturnDetailCode")]
        public ExcelPropety BuyReturnDetailCode_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.BuyReturnDetailCode);
        [Display(Name = "_Model._BuyReturnDetail._BuyInWarehouseDetail")]
        public ExcelPropety BuyInWarehouseDetail_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.BuyInWarehouseDetailId);
        [Display(Name = "_Model._BuyReturnDetail._Buy")]
        public ExcelPropety Buy_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.BuyId);
        [Display(Name = "_Model._BuyReturnDetail._BuyDatail")]
        public ExcelPropety BuyDatail_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.BuyDatailId);
        [Display(Name = "_Model._BuyReturnDetail._Goods")]
        public ExcelPropety Goods_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.GoodsId);
        [Display(Name = "_Model._BuyReturnDetail._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.GoodsName);
        [Display(Name = "_Model._BuyReturnDetail._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.GoodsSpec);
        [Display(Name = "_Model._BuyReturnDetail._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.GoodsUnit);
        [Display(Name = "_Model._BuyReturnDetail._ReturnNumber")]
        public ExcelPropety ReturnNumber_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.ReturnNumber);
        [Display(Name = "_Model._BuyReturnDetail._UnitPrice")]
        public ExcelPropety UnitPrice_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.UnitPrice);
        [Display(Name = "_Model._BuyReturnDetail._DiscountPrice")]
        public ExcelPropety DiscountPrice_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.DiscountPrice);
        [Display(Name = "_Model._BuyReturnDetail._TotalPrice")]
        public ExcelPropety TotalPrice_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.TotalPrice);
        [Display(Name = "_Model._BuyReturnDetail._TaxRate")]
        public ExcelPropety TaxRate_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.TaxRate);
        [Display(Name = "_Model._BuyReturnDetail._TaxUnitPrice")]
        public ExcelPropety TaxUnitPrice_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.TaxUnitPrice);
        [Display(Name = "_Model._BuyReturnDetail._TaxPrice")]
        public ExcelPropety TaxPrice_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.TaxPrice);
        [Display(Name = "_Model._BuyReturnDetail._TotalTaxPrice")]
        public ExcelPropety TotalTaxPrice_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.TotalTaxPrice);
        [Display(Name = "_Model._BuyReturnDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.Remark);
        [Display(Name = "_Model._BuyReturnDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.Status);
        //[Display(Name = "_Model._BuyReturnDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._BuyReturnDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._BuyReturnDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._BuyReturnDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._BuyReturnDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<BuyReturnDetail>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class BuyReturnDetailImportVM : BaseImportVM<BuyReturnDetailTemplateVM, BuyReturnDetail>
    {
            //import

    }

}